package com.yueyang.sojourn.server.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author yemingxing
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-29 19:50
 */
@Data
@ApiModel("编辑分类DTO")
public class EditMerchKindDto {

    @ApiModelProperty("分类id")
    @NotNull(message = "[分类id]不能为空")
    private Integer kindId;

    @ApiModelProperty("分类名称")
    @Size(max = 6, message = "[分类名称]最多填写6个字")
    private String kindName;

    @ApiModelProperty("关联商品id集合")
    private List<Long> merchIds;
}
